metaforce/hecl/driver/CMakeLists.txt

43 lines
979 B
CMake
Raw Normal View History

2017-12-06 03:22:31 +00:00
if(NOT WINDOWS_STORE)
2018-04-15 06:04:08 +00:00
if(TARGET nod)
include_directories(${NOD_INCLUDE_DIR})
add_definitions(-DHECL_HAS_NOD=1)
endif()
add_executable(hecl main.cpp
ToolBase.hpp
ToolPackage.hpp
ToolExtract.hpp
ToolInit.hpp
ToolHelp.hpp
ToolCook.hpp
2018-04-15 06:04:08 +00:00
ToolImage.hpp
ToolSpec.hpp
2017-12-12 02:05:28 +00:00
../DataSpecRegistry.hpp)
if(COMMAND add_sanitizers)
add_sanitizers(hecl)
endif()
2015-07-10 05:28:33 +00:00
2015-08-31 03:36:24 +00:00
if(NOT WIN32)
list(APPEND PLAT_LIBS pthread)
endif()
2016-01-09 02:19:26 +00:00
if(APPLE)
find_library(CF_LIBRARY CoreFoundation)
list(APPEND PLAT_LIBS ${CF_LIBRARY})
endif()
2015-07-10 05:28:33 +00:00
target_link_libraries(hecl
${DATA_SPEC_LIBS}
2018-01-10 06:16:18 +00:00
hecl-full hecl-blender-addon athena-core nod
2016-04-07 03:38:37 +00:00
logvisor athena-libyaml ${PNG_LIB} squish xxhash zeus boo
${ZLIB_LIBRARIES} ${LZO_LIB} ${PLAT_LIBS} ${BOO_SYS_LIBS})
2017-12-29 07:56:31 +00:00
2018-01-02 00:58:13 +00:00
set_target_properties(hecl PROPERTIES COMPILE_DEFINITIONS HECL_DLPACKAGE="${HECL_DLPACKAGE}")
2017-12-29 07:56:31 +00:00
if(COMMAND cotire)
2018-01-01 02:53:17 +00:00
set_target_properties(hecl PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
2017-12-29 07:56:31 +00:00
cotire(hecl)
endif()
2017-12-06 03:22:31 +00:00
endif()