2017-12-06 03:22:31 +00:00
|
|
|
if(NOT WINDOWS_STORE)
|
2018-04-15 06:04:08 +00:00
|
|
|
|
2015-07-07 04:45:29 +00:00
|
|
|
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
|
2015-07-07 04:45:29 +00:00
|
|
|
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()
|
|
|
|
|
2019-06-12 02:01:19 +00:00
|
|
|
target_link_libraries(hecl PUBLIC ${DATA_SPEC_LIBS} hecl-full)
|
2018-01-02 00:58:13 +00:00
|
|
|
|
2019-06-12 02:01:19 +00:00
|
|
|
if(TARGET nod)
|
|
|
|
target_link_libraries(hecl PUBLIC nod)
|
|
|
|
target_compile_definitions(hecl PUBLIC HECL_HAS_NOD=1)
|
2017-12-29 07:56:31 +00:00
|
|
|
endif()
|
2019-06-12 02:01:19 +00:00
|
|
|
|
|
|
|
target_compile_definitions(hecl PRIVATE HECL_DLPACKAGE="${HECL_DLPACKAGE}")
|
|
|
|
|
2017-12-06 03:22:31 +00:00
|
|
|
endif()
|