Debian Codegraph @

src/LibBGCode/cmd/CMakeLists.txt

raw ◀ ▶
1 Debian patch touch this file
1 add_executable(${_libname}_cmd main.cpp )
2
3 find_package(Boost ${Boost_VER} REQUIRED COMPONENTS nowide)
4
5 if (MSVC)
6 set_target_properties(Boost::nowide PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release)
7 endif ()
8
9 set_target_properties(${_libname}_cmd PROPERTIES OUTPUT_NAME ${_libname})
10 target_link_libraries(${_libname}_cmd ${_libname}_convert Boost::nowide)
11
12
13 if (NOT EMSCRIPTEN)
14 install(TARGETS ${_libname}_cmd
15 RUNTIME DESTINATION bin
16 INCLUDES DESTINATION include/${PROJECT_NAME}
17 )
18 else ()
19 target_link_libraries(${_libname}_cmd nodefs.js noderawfs.js)
20 endif ()