-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (34 loc) · 1.01 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
cmake_minimum_required(VERSION 3.26)
set(PROJECT_NAME Thermodynamics_simulation)
project(${PROJECT_NAME})
include(FetchContent)
set(BUILD_SHARED_LIBS OFF)
FETCHCONTENT_DECLARE(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git GIT_TAG 2.5.1)
FETCHCONTENT_MAKEAVAILABLE(SFML)
set(CMAKE_CXX_STANDARD 20)
set(${PROJECT_NAME}_HEADERS
src/Reactor.hpp
src/Molecules.hpp
src/Vec.hpp
src/Buttons.hpp
src/ReactorBtns.hpp
src/Plot.hpp
)
set(${PROJECT_NAME}_SOURCES
src/Reactor.cpp
src/Molecules.cpp
src/Vec.cpp
src/Buttons.cpp
src/ReactorBtns.cpp
src/Plot.cpp
src/main.cpp
)
set(${PROJECT_NAME}_SOURCE_LIST
${${PROJECT_NAME}_SOURCES}
${${PROJECT_NAME}_HEADERS}
)
add_executable(${PROJECT_NAME} ${${PROJECT_NAME}_SOURCE_LIST})
#set(SFML_DIR "D:\\sdk\\SFML-2.6.1\\lib\\cmake\\SFML")
target_link_libraries(${PROJECT_NAME} sfml-graphics)
#set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
#find_package(SFML 2.6 REQUIRED graphics network audio window system)