-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (47 loc) · 1.41 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
cmake_minimum_required(VERSION 3.0)
project(CarNN)
set(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -flto=thin -g")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++17 -fpch-instantiate-templates")
include(~/vcpkg/scripts/buildsystems/vcpkg.cmake)
find_package(SFML 2 COMPONENTS graphics REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(ImGui-SFML CONFIG REQUIRED)
find_package(jsoncpp CONFIG REQUIRED)
find_package(box2d CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
find_package(spdlog CONFIG REQUIRED)
find_package(cereal CONFIG REQUIRED)
find_package(TBB CONFIG REQUIRED)
find_package(Microsoft.GSL CONFIG REQUIRED)
add_executable(${PROJECT_NAME}
src/neural/activationmethod.cpp
src/neural/network.cpp
src/neural/neuron.cpp
src/neural/visualizer.cpp
src/sim/entities/car.cpp
src/sim/entities/checkpoint.cpp
src/sim/entities/wheel.cpp
src/sim/entities/body.cpp
src/sim/simulationunit.cpp
src/sim/world.cpp
src/training/mutator.cpp
src/training/settings.cpp
src/util/random.cpp
src/main.cpp
)
target_include_directories(${PROJECT_NAME} PRIVATE include/)
target_link_libraries(${PROJECT_NAME}
jsoncpp_static
sfml-graphics
imgui::imgui
ImGui-SFML::ImGui-SFML
GL # required because of sfml/vcpkg being dumbasses
box2d::box2d
fmt
spdlog::spdlog
cereal::cereal
TBB::tbb
Microsoft.GSL::GSL
)
target_precompile_headers(${PROJECT_NAME} PUBLIC include/carnn/pch.hpp)