inital, almost working cross-compilation setup with Visual Studio and cmake
This commit is contained in:
12
game/CMakeLists.txt
Normal file
12
game/CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
add_executable(game
|
||||
"src/main.cpp"
|
||||
)
|
||||
|
||||
target_link_libraries(game PRIVATE engine)
|
||||
|
||||
# On Windows, use the WINDOWS subsystem (no console) for release only
|
||||
if(WIN32)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
set_target_properties(game PROPERTIES WIN32_EXECUTABLE TRUE)
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user