-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (56 loc) · 1.33 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required (VERSION 2.6)
find_package(PkgConfig)
project(OpenSiv3D_Linux CXX)
enable_language(C)
set(CMAKE_CXX_COMPILER "clang++")
#set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_FLAGS "-std=c++17 -Wall -Wextra -Wno-unknown-pragmas -fPIC -msse4.1 -D_GLFW_X11")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0 -pg -DDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -march=x86-64")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=x86-64")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options ("-fcolor-diagnostics")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options ("-fdiagnostics-color=always")
endif()
#set(CMAKE_BUILD_TYPE Release)
pkg_check_modules(OPENCV4 REQUIRED opencv4)
include_directories(
"/usr/include"
"~/OpenSiv3D/Siv3D/include"
"~/OpenSiv3D/Siv3D/include/ThirdParty"
)
set(SOURCE_FILES
"./src/Core.cpp"
"./src/Minmax.cpp"
"./src/Montecarlo.cpp"
"./src/Main.cpp"
)
add_executable(Siv3D_App ${SOURCE_FILES})
target_link_libraries(Siv3D_App
${OPENCV4_LIBRARIES}
/home/taisa/OpenSiv3D/Linux/build/libSiv3D.a
-lOpenGL
-lGLEW
-lX11
-langelscript
-lpthread
-ldl
-ludev
-lfreetype
-lharfbuzz
-lglib-2.0
-lgobject-2.0
-lgio-2.0
-lpng
-lturbojpeg
-lgif
-lwebp
-lopenal
-logg
-lvorbis
-lvorbisenc
-lvorbisfile
-lboost_filesystem
)