CMakeLists.txt (578B)
1 add_executable(demo main.cpp) 2 target_link_libraries(demo PRIVATE poafloc) 3 target_include_directories(demo PRIVATE ../include) 4 set_target_properties(demo PROPERTIES LANGUAGE CXX) 5 set_target_properties(demo PROPERTIES 6 VERSION ${PROJECT_VERSION} 7 SOVERSION ${PROJECT_VERSION_MAJOR} 8 ) 9 10 add_executable(cdemo main.c) 11 target_link_libraries(cdemo PRIVATE poafloc) 12 target_include_directories(cdemo PRIVATE ../include) 13 set_target_properties(cdemo PROPERTIES LANGUAGE C) 14 set_target_properties(cdemo PROPERTIES 15 VERSION ${PROJECT_VERSION} 16 SOVERSION ${PROJECT_VERSION_MAJOR} 17 )