1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt
Josua Grawitter b9f349cf30 Explicitly link MyGUI to it's dependencies
Again courtesy of "ld --no-add-needed" by Fedora 13.
	Maybe we should send this upstream to the MyGUI developers.

Signed-off-by: Josua Grawitter <josh@greyage.org>
2010-07-08 13:23:25 +02:00

29 lines
566 B
CMake

set (PROJECT_NAME MyGUIEngine)
project( ${PROJECT_NAME} )
include(${PROJECT_NAME}.list)
include_directories(include)
if (MYGUI_USE_FREETYPE)
include_directories(
${FREETYPE_INCLUDE_DIRS}
)
add_definitions(-DMYGUI_USE_FREETYPE)
endif ()
add_definitions(-DMYGUI_BUILD)
if (WIN32)
add_definitions(-DNOMINMAX)
endif ()
add_library(${PROJECT_NAME} ${MYGUI_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
if (MYGUI_USE_FREETYPE)
target_link_libraries(${PROJECT_NAME}
${FREETYPE_LIBRARIES}
)
endif()
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS} uuid)