CMakeLists.txt (861B)
1 add_library(stamen STATIC stamen.cpp menu.cpp c_bindings.cpp) 2 target_include_directories(stamen PRIVATE ../include) 3 target_compile_definitions(stamen PRIVATE WITH_C_BINDINGS) 4 set_target_properties(stamen PROPERTIES LINKER_LANGUAGE CXX) 5 6 set_target_properties(stamen PROPERTIES 7 VERSION ${PROJECT_VERSION} 8 SOVERSION ${PROJECT_VERSION_MAJOR} 9 DEBUG_POSTFIX "d" 10 PUBLIC_HEADER "include/stamen.h;include/stamen.hpp;include/menu.h;include/menu.hpp" 11 MACOSX_RPATH ON 12 WINDOWS_EXPORT_ALL_SYMBOLS ON 13 ) 14 15 add_executable(stamen-generate generate.cpp) 16 target_link_libraries(stamen-generate PRIVATE poafloc stamen) 17 target_include_directories(stamen-generate PRIVATE ../include) 18 19 set_target_properties(stamen-generate PROPERTIES 20 VERSION ${PROJECT_VERSION} 21 SOVERSION ${PROJECT_VERSION_MAJOR} 22 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" 23 )