Commit 8a693d04 authored by Grant Kim's avatar Grant Kim

[BSAExtractor] Switched to use a target scope

parent 5320e035
......@@ -11,7 +11,6 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
FIND_PACKAGE(Qt5Widgets REQUIRED)
QT5_WRAP_UI(bsaExtractor_UIHDRS ${bsaExtractor_FORMS})
# FIND_PACKAGE(Qt5LinguistTools)
# QT5_CREATE_TRANSLATION(bsaExtractor_translations_qm ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/bsaExtractor_en.ts)
......@@ -20,21 +19,13 @@ SET(Boost_USE_MULTITHREADED ON)
SET(Boost_USE_STATIC_RUNTIME on)
FIND_PACKAGE(Boost REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
SET(default_project_path "${CMAKE_SOURCE_DIR}/src/")
GET_FILENAME_COMPONENT(${default_project_path} ${default_project_path} REALPATH)
SET(project_path "${default_project_path}" CACHE PATH "path to the other mo projects")
SET(lib_path "${project_path}/../../install/libs")
INCLUDE_DIRECTORIES(${project_path}/uibase
${project_path}/bsatk)
LINK_DIRECTORIES(${lib_path}
${project_path}/uibase/build/src)
QT5_WRAP_UI(bsaExtractor_UIHDRS ${bsaExtractor_FORMS})
ADD_LIBRARY(bsaExtractor SHARED ${bsaExtractor_HDRS} ${bsaExtractor_SRCS} ${bsaExtractor_UIHDRS} ${bsaExtractor_translations_qm})
TARGET_LINK_LIBRARIES(bsaExtractor
Qt5::Widgets
......@@ -43,6 +34,16 @@ TARGET_LINK_LIBRARIES(bsaExtractor
bsatk
uibase)
# MO deps
TARGET_INCLUDE_DIRECTORIES(bsaExtractor PRIVATE ${project_path}/uibase
${project_path}/bsatk)
TARGET_LINK_DIRECTORIES(bsaExtractor PRIVATE ${lib_path}
${project_path}/uibase/build/src)
# libBoost
TARGET_INCLUDE_DIRECTORIES(bsaExtractor PRIVATE ${Boost_INCLUDE_DIRS})
TARGET_LINK_DIRECTORIES(bsaExtractor PRIVATE ${Boost_LIBRARY_DIRS})
IF(MSVC)
SET_TARGET_PROPERTIES(bsaExtractor PROPERTIES LINK_FLAGS "/LARGEADDRESSAWARE")
ELSE(MSVC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment