scaffold some common services
This commit is contained in:
20
common/CMakeLists.txt
Normal file
20
common/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
add_library(accordion-common STATIC
|
||||
LoggerService.cpp
|
||||
config/ConfigService.cpp
|
||||
)
|
||||
|
||||
target_include_directories(accordion-common PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../
|
||||
${libconfig_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
target_link_libraries(accordion-common PUBLIC
|
||||
config++ # note: differs on windows (ld automatically adds 'lib' to library searches and would look for 'liblibconfig++' if we didnt strip it)
|
||||
# rare linux < windows right hereg
|
||||
)
|
||||
|
||||
target_compile_definitions(accordion-common PRIVATE
|
||||
# pass in some compiler macros
|
||||
BINARY_DIR="${CMAKE_BINARY_DIR}" # useful for runtime filepaths
|
||||
)
|
||||
Reference in New Issue
Block a user