mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-18 05:51:15 +00:00
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.
25 lines
391 B
CMake
25 lines
391 B
CMake
add_library(lego1 SHARED
|
|
src/dllmain.cpp
|
|
|
|
# OMNI source
|
|
src/mxcore.cpp
|
|
src/mxcriticalsection.cpp
|
|
src/mxomnicreateparambase.cpp
|
|
|
|
# legoomni source
|
|
src/legoomni.cpp
|
|
)
|
|
|
|
target_include_directories(lego1 PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_include_directories(lego1 PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
target_link_libraries(lego1 PRIVATE
|
|
DX5::DSound
|
|
winmm
|
|
)
|