-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (24 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
cmake_minimum_required (VERSION 2.6)
project (Physics)
# The version nmber.
set (Physics_VERSION_MAJOR 0)
set (Physics_VERSION_MINOR 0)
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/src/PhysicsConfig.hpp.in"
"${PROJECT_BINARY_DIR}/src/PhysicsConfig.hpp"
)
# add the binary tree to the search path for include files
# so that we will find PhysicsConfig.hpp
include_directories("${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/src")
add_library(physics src/vector3.cpp src/rectangle.cpp src/line.cpp src/collider.cpp src/cuboidcollider.cpp src/notimplementedexception.cpp src/spherecollider.cpp)
# add the executable
add_executable(Test test.cpp)
target_link_libraries(Test physics)