2015-07-22 19:14:50 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /INCLUDE:HECLDataSpecs")
|
|
|
|
endif()
|
|
|
|
|
2015-07-07 04:45:29 +00:00
|
|
|
add_executable(hecl main.cpp
|
|
|
|
ToolBase.hpp
|
|
|
|
ToolPackage.hpp
|
|
|
|
ToolExtract.hpp
|
|
|
|
ToolInit.hpp
|
|
|
|
ToolHelp.hpp
|
|
|
|
ToolGroup.hpp
|
|
|
|
ToolCook.hpp
|
|
|
|
ToolClean.hpp
|
|
|
|
ToolAdd.hpp
|
|
|
|
ToolRemove.hpp
|
|
|
|
ToolSpec.hpp
|
2015-07-25 23:01:02 +00:00
|
|
|
../DataSpecRegistry.hpp
|
2015-07-07 04:45:29 +00:00
|
|
|
)
|
2015-07-10 05:28:33 +00:00
|
|
|
|
|
|
|
list(APPEND DATA_SPEC_LIBS
|
|
|
|
RetroDataSpec
|
2015-07-13 06:30:20 +00:00
|
|
|
DNACommon
|
2015-07-10 05:28:33 +00:00
|
|
|
DNAMP1
|
|
|
|
DNAMP2
|
|
|
|
DNAMP3)
|
|
|
|
|
2015-07-22 19:14:50 +00:00
|
|
|
if(NOT WIN32)
|
|
|
|
set(WHOLE_START "-Wl,-whole-archive")
|
|
|
|
set(WHOLE_END "-Wl,-no-whole-archive")
|
|
|
|
endif()
|
|
|
|
|
2015-07-10 05:28:33 +00:00
|
|
|
target_link_libraries(hecl
|
2015-07-22 19:14:50 +00:00
|
|
|
${WHOLE_START} HECLDatabaseInit ${DATA_SPEC_LIBS} ${WHOLE_END}
|
|
|
|
HECLDatabase HECLCommon AthenaCore AngelScript NOD LogVisor png squish blowfish z lzo2
|
2015-07-07 04:45:29 +00:00
|
|
|
)
|