-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (29 loc) · 1.19 KB
/
CMakeLists.txt
File metadata and controls
37 lines (29 loc) · 1.19 KB
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
cmake_minimum_required(VERSION 2.8.12)
project(KanColleTool)
IF(WIN32)
#Set to allow xp compatibility
set(CMAKE_GENERATOR_TOOLSET "v120_xp" CACHE STRING "Platform toolset" FORCE)
ENDIF(WIN32)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
add_subdirectory(lib)
add_subdirectory(src)
add_subdirectory(test)
enable_testing()
add_test(NAME KanColleToolTest COMMAND KanColleToolTest)
if(${CMAKE_GENERATOR} MATCHES ".* Makefiles")
# Add a custom 'make check' target to get output when a test fails
# Taken from http://stackoverflow.com/questions/16158091/
if(CMAKE_CONFIGURATION_TYPES)
add_custom_target(check_tool COMMAND ${CMAKE_CTEST_COMMAND}
--force-new-ctest-process --output-on-failure
--build-config "$<CONFIGURATION>")
else()
add_custom_target(check_tool COMMAND ${CMAKE_CTEST_COMMAND}
--force-new-ctest-process --output-on-failure)
endif()
endif()
set_property(TARGET KanColleTool KCBase PROPERTY FOLDER "Tool")
set_property(TARGET KCSupport PROPERTY FOLDER "3rd Party")
set_property(TARGET KanColleToolTest PROPERTY FOLDER "Tests")