23 lines
788 B
CMake
Raw Normal View History

2024-11-06 06:46:35 +08:00
add_library(host
host.cpp
textthread.cpp
)
target_precompile_headers(host REUSE_FROM pch)
target_include_directories(host PUBLIC .)
2024-11-19 16:00:45 +08:00
target_link_libraries(host VERSION_DEF)
2024-11-06 06:46:35 +08:00
2025-01-04 07:28:06 +08:00
add_library(LunaHostDll MODULE LunaHostDll.cpp ${versioninfo})
2024-11-06 06:46:35 +08:00
target_precompile_headers(LunaHostDll REUSE_FROM pch)
set_target_properties(LunaHostDll PROPERTIES OUTPUT_NAME "LunaHost${bitappendix}")
2024-12-16 01:48:39 +08:00
target_link_libraries(LunaHostDll pch host ${YY_Thunks_for_WinXP} lang_host)
2024-11-06 06:46:35 +08:00
if(BUILD_CLI)
2025-01-04 07:28:06 +08:00
add_executable(LunaHostCLI LunaHostCLI.cpp injector.cpp ${versioninfo})
2024-11-06 06:46:35 +08:00
target_precompile_headers(LunaHostCLI REUSE_FROM pch)
set_target_properties(LunaHostCLI PROPERTIES OUTPUT_NAME "LunaHostCLI${bitappendix}")
2024-12-16 01:48:39 +08:00
target_link_libraries(LunaHostCLI pch host ${YY_Thunks_for_WinXP} lang_host)
2024-11-06 06:46:35 +08:00
endif()
2024-11-06 23:45:31 +08:00
add_subdirectory(GUI)