-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 807 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (22 loc) · 807 Bytes
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
cmake_minimum_required(VERSION 3.5)
project(CUT)
if(WIN32)
add_custom_target(
compile1header
COMMAND ${CMAKE_SOURCE_DIR}/py/generate-win.py ${CMAKE_SOURCE_DIR}/src/core.h ${CMAKE_SOURCE_DIR}/1header/cut.h
)
add_custom_target(
version
COMMAND ${CMAKE_SOURCE_DIR}/py/generate-win.py ${CMAKE_SOURCE_DIR}/src/core.h ${CMAKE_SOURCE_DIR}/single-header/cut.h --no-comment
)
else()
add_custom_target(
compile1header
COMMAND ${CMAKE_SOURCE_DIR}/py/generate.py ${CMAKE_SOURCE_DIR}/src/core.h ${CMAKE_SOURCE_DIR}/1header/cut.h
)
add_custom_target(
version
COMMAND ${CMAKE_SOURCE_DIR}/py/generate.py ${CMAKE_SOURCE_DIR}/src/core.h ${CMAKE_SOURCE_DIR}/single-header/cut.h --no-comment
)
endif()
add_subdirectory(tests)