mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-26 04:12:41 +01:00
34 lines
652 B
CMake
34 lines
652 B
CMake
FILE(GLOB_RECURSE RENDERWARE_SOURCES "src/*.cpp")
|
|
FILE(GLOB_RECURSE RENDERWARE_HEADERS "include/*.hpp")
|
|
|
|
source_group("Header Files" FILES ${RENDERWARE_HEADERS})
|
|
source_group("Source Files" FILES ${RENDERWARE_SOURCES})
|
|
|
|
add_library(rwengine
|
|
${RENDERWARE_SOURCES}
|
|
${RENDERWARE_HEADERS}
|
|
)
|
|
|
|
if(MINGW)
|
|
add_definitions(-D _USE_MATH_DEFINES)
|
|
endif()
|
|
|
|
target_link_libraries(rwengine
|
|
rwlib
|
|
${MAD_LIBRARY}
|
|
${LIBSNDFILE_LIBRARY}
|
|
${OPENAL_LIBRARY}
|
|
${OPENRW_PLATFORM_LIBS}
|
|
${SDL2_LIBRARY})
|
|
|
|
include_directories(SYSTEM
|
|
${BULLET_INCLUDE_DIR}
|
|
${MAD_INCLUDE_DIR}
|
|
${LIBSNDFILE_INCLUDE_DIR}
|
|
${OPENAL_INCLUDE_DIR}
|
|
)
|
|
|
|
include_directories(
|
|
include
|
|
)
|