isle/isle/CMakeLists.txt
modeco80 2dc554e83b *: Add CMake build system
I haven't yet:
- Ensured CMake is generating the same cl flags as Developer Studio (ditto..)

The old IDE makefiles are left in attic/ if anyone wants to try matching flags

Source structure has been slightly modified:

Uppercase directories moved to lowercase

isle/res -> isle/src/res (I'm a bit dubious of this myself but eh)
isle/*.{cpp, h} -> isle/src

lego1/*.h -> lego1/include
lego1/*.cpp -> lego1/src

All mixed/upper includes have additionally been changed to lowercase,
for compatibility with building on both Windows and Linux.
2023-06-13 18:20:00 -04:00

29 lines
574 B
CMake

add_executable(isle WIN32
src/define.cpp
src/main.cpp
src/isle.cpp
src/res/isle.rc
../lego1/src/mxomnicreateparambase.cpp
)
# Left for when lego1 is featured enough to be bootstrappable.
#if(ISLE_BUILD_LEGO1)
# target_link_libraries(isle PRIVATE lego1)
#else()
target_include_directories(isle PRIVATE ${PROJECT_SOURCE_DIR}/lego1/include)
target_link_libraries(isle PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/ext/lego1.lib
)
#endif()
target_include_directories(isle PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_link_libraries(isle PRIVATE
DX5::DSound
winmm
)