-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (26 loc) · 969 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
cmake_minimum_required(VERSION 3.14)
project(ColorPicker)
set(BUILD_SHARED_LIBS FALSE)
set(SFML_BUILD_AUDIO FALSE)
set(SFML_BUILD_DOC FALSE)
set(SFML_BUILD_EXAMPLES FALSE)
set(SFML_BUILD_GRAPHICS TRUE)
set(SFML_BUILD_NETWORK FALSE)
set(SFML_BUILD_TEST_SUITE FALSE)
set(SFML_BUILD_WINDOW TRUE)
set(SFML_INSTALL_PKGCONFIG_FILES FALSE)
set(SFML_OPENGL_ES FALSE)
set(SFML_USE_STATIC_STD_LIBS FALSE)
set(SFML_USE_SYSTEM_DEPS TRUE)
set(SFML_STATIC_LIBRARIES TRUE)
find_package(SFML 2.5.1 COMPONENTS system window graphics REQUIRED PATHS
"P:\\Downloads\\cpp-libraries\\SFML\\build\\sfml\\lib\\cmake\\SFML"
)
# uncomment this line if using msvc
# SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:windows /ENTRY:mainCRTStartup")
# uncomment this line if using clang
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -Wl,--subsystem,windows")
add_executable(ColorPicker
"src/main.cpp"
)
target_link_libraries(ColorPicker sfml-graphics)