You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
466 B
36 lines
466 B
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(cmkr VERSION 0.1.0)
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
set(CMKRLIB_SOURCES
|
|
"src/args.cpp"
|
|
"src/gen.cpp"
|
|
"src/help.cpp"
|
|
)
|
|
|
|
add_library(cmkrlib STATIC ${CMKRLIB_SOURCES})
|
|
|
|
target_include_directories(cmkrlib PUBLIC
|
|
"vendor"
|
|
)
|
|
|
|
target_compile_features(cmkrlib PUBLIC
|
|
"cxx_std_17"
|
|
)
|
|
|
|
set(CMKR_SOURCES
|
|
"src/main.cpp"
|
|
)
|
|
|
|
add_executable(cmkr ${CMKR_SOURCES})
|
|
|
|
target_link_libraries(cmkr PUBLIC
|
|
"cmkrlib"
|
|
)
|
|
|
|
|
|
|