AppleWin/source/frontends/common2/CMakeLists.txt
Andrea Odetti f61e73b639 Move resources, bitmaps and messageboxes into Frames.
And remove a few windows.h interface functions used before.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-20 19:07:18 +00:00

47 lines
884 B
CMake

include(GNUInstallDirs)
set(SOURCE_FILES
commonframe.cpp
fileregistry.cpp
ptreeregistry.cpp
programoptions.cpp
utils.cpp
timer.cpp
speed.cpp
)
set(HEADER_FILES
commonframe.h
fileregistry.h
ptreeregistry.h
programoptions.h
utils.h
timer.h
speed.h
)
add_library(common2 STATIC
${SOURCE_FILES}
${HEADER_FILES}
)
find_package(Boost REQUIRED
COMPONENTS program_options
)
target_include_directories(common2 PRIVATE
${CMAKE_CURRENT_BINARY_DIR}
${Boost_INCLUDE_DIRS}
)
target_link_libraries(common2 PUBLIC
Boost::program_options
)
file(RELATIVE_PATH ROOT_PATH ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR})
file(RELATIVE_PATH SHARE_PATH ${CMAKE_INSTALL_FULL_BINDIR} ${CMAKE_INSTALL_FULL_DATADIR}/applewin)
configure_file(config.h.in config.h)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resource
DESTINATION ${CMAKE_INSTALL_DATADIR}/applewin)