-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (28 loc) · 986 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.5)
project(sfml-app)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -pg")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
INCLUDE_DIRECTORIES(F://c++header)
INCLUDE_DIRECTORIES(SFML-2.5.1/include)
INCLUDE_DIRECTORIES(thirdparty)
INCLUDE_DIRECTORIES(source)
INCLUDE_DIRECTORIES(framework)
INCLUDE_DIRECTORIES(./)
LINK_DIRECTORIES(SFML-2.5.1/lib)
link_directories(/usr/local/lib)
file(GLOB SFML_FRAMEWORK_SRC
framework/*.cpp
framework/*.h
framework/Widget/*.h
framework/Widget/*.cpp
framework/Charts/*.h
framework/Charts/*.cpp
)
add_library(framework STATIC ${SFML_FRAMEWORK_SRC} )
add_subdirectory(application)
message("finished ......................")