forked from himura95/OpenJVS3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (34 loc) · 1.16 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
cmake_minimum_required(VERSION 3.10)
project(openjvs)
project(openjvs
VERSION "3.1.2"
LANGUAGES "C"
DESCRIPTION "An emulator for arcade JVS I/O boards"
HOMEPAGE_URL "https://github.com/bobbydilley/OpenJVS3"
)
find_package(Threads REQUIRED)
configure_file(include/version.h.in version.h)
include_directories(${THREAD_INLCUDE_DIRS} ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR})
FILE(GLOB Sources src/*.c) #Assume we want to include everything from src/
add_executable(${PROJECT_NAME}
${Sources}
)
set_target_properties(${PROJECT_NAME} PROPERTIES
C_STANDARD 99
)
# target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(${PROJECT_NAME} PRIVATE)
target_link_libraries(${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT} m)
install(TARGETS ${PROJECT_NAME}
COMPONENT ${PROJECT_NAME}
RUNTIME DESTINATION "bin/"
LIBRARY DESTINATION "lib/"
)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/docs/openjvs
COMPONENT ${PROJECT_NAME}
DESTINATION "/etc/"
)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]") #required
INCLUDE(CPack)