CMakeLists.txt 750 Bytes
Newer Older
Hurstel's avatar
Hurstel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
cmake_minimum_required (VERSION 3.1)

SET( MOD_NAME LIR )

SET( MOD_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} )



set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

find_package(Qt5 COMPONENTS Core)

INCLUDE_DIRECTORIES(
    ${CORE_INCLUDE_DIR}
    ${MOD_ROOT_DIR}
    ${MOD_ROOT_DIR}/include
    ${CMAKE_CURRENT_BINARY_DIR}
)

file(
	GLOB_RECURSE
	MOD_FILES
        ${MOD_ROOT_DIR}/*.h
	${MOD_ROOT_DIR}/src/*.cpp
	${MOD_ROOT_DIR}/include/*.h
	${MOD_ROOT_DIR}/include/*.hpp
)

set(MODS ${MODS} PARENT_SCOPE)

SET(MOD_LINK_LIBS ${QT_RESOURCES} Threads::Threads)

SET(MOD_LINK_LIBS)

add_mod_dependencies(MM)

base_mod_compile()

qt5_use_modules(${MOD_NAME} Core)

set(MODS ${MODS} PARENT_SCOPE)
SET(MOD_DIRS ${MOD_DIRS} PARENT_SCOPE)