2022-05-14 18:24:20 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2022-05-09 21:41:01 +00:00
|
|
|
|
|
|
|
project(VMBoxGen VERSION 1.0)
|
|
|
|
|
|
|
|
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
|
|
# compile vmTest
|
|
|
|
file(GLOB_RECURSE VMTESTSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c)
|
|
|
|
add_executable(VMBoxGen ${VMTESTSOURCE})
|
2022-05-19 06:42:40 +00:00
|
|
|
target_link_libraries(VMBoxGen PUBLIC)
|
2022-05-09 21:41:01 +00:00
|
|
|
|
|
|
|
# add the 'DEBUG' preprocessor definition if we're compiling as Debug
|
|
|
|
target_compile_definitions(VMBoxGen PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
|
2022-05-11 19:50:42 +00:00
|
|
|
|
|
|
|
# generate the VMBOXCONFIG file
|
|
|
|
if(LAIKA_OBFUSCATE)
|
|
|
|
add_custom_command(TARGET VMBoxGen POST_BUILD
|
|
|
|
COMMAND VMBoxGen ${LAIKA_VMBOXCONFIG}
|
2022-05-19 06:42:40 +00:00
|
|
|
COMMENT "Generating VMBox data & keys.."
|
2022-05-11 19:50:42 +00:00
|
|
|
)
|
2022-05-15 20:27:54 +00:00
|
|
|
endif ()
|