2021-06-07 21:18:19 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project(CMoe-Counter C)
|
|
|
|
SET(CMAKE_BUILD_TYPE "Release")
|
|
|
|
|
2023-07-08 20:25:33 +08:00
|
|
|
include_directories("/usr/local/include")
|
|
|
|
link_directories("/usr/local/lib")
|
2021-06-07 21:18:19 +08:00
|
|
|
|
|
|
|
add_executable(cmoe cmoe.c)
|
2023-03-07 21:29:29 +08:00
|
|
|
add_executable(cmoeditor editor.c)
|
2021-06-07 21:18:19 +08:00
|
|
|
|
|
|
|
target_link_libraries(cmoe spb)
|
2023-03-07 21:29:29 +08:00
|
|
|
target_link_libraries(cmoeditor spb)
|
2021-06-07 21:18:19 +08:00
|
|
|
|
2024-04-12 22:55:42 +09:00
|
|
|
if (BUILD STREQUAL "docker")
|
|
|
|
INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
|
|
|
|
endif ()
|
2023-03-07 21:29:29 +08:00
|
|
|
INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin)
|