mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-28 04:12:19 -05:00
[cmake] Split OTRGui into it's own target (#1116)
This commit is contained in:
parent
e88000aeb0
commit
791f7774a5
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -63,6 +63,7 @@ pipeline {
|
|||||||
unstash 'assets'
|
unstash 'assets'
|
||||||
bat """
|
bat """
|
||||||
"${env.CMAKE}" -S . -B "build\\${env.PLATFORM}" -G "Visual Studio 17 2022" -T ${env.TOOLSET} -A ${env.PLATFORM} -D Python_EXECUTABLE=${env.PYTHON} -D CMAKE_BUILD_TYPE:STRING=Release
|
"${env.CMAKE}" -S . -B "build\\${env.PLATFORM}" -G "Visual Studio 17 2022" -T ${env.TOOLSET} -A ${env.PLATFORM} -D Python_EXECUTABLE=${env.PYTHON} -D CMAKE_BUILD_TYPE:STRING=Release
|
||||||
|
"${env.CMAKE}" --build ".\\build\\${env.PLATFORM}" --target OTRGui --config Release
|
||||||
"${env.CMAKE}" --build ".\\build\\${env.PLATFORM}" --config Release
|
"${env.CMAKE}" --build ".\\build\\${env.PLATFORM}" --config Release
|
||||||
cd ".\\build\\${env.PLATFORM}"
|
cd ".\\build\\${env.PLATFORM}"
|
||||||
"${env.CPACK}" -G ZIP
|
"${env.CPACK}" -G ZIP
|
||||||
|
@ -38,7 +38,7 @@ file(GLOB_RECURSE HEADERS src/*.h)
|
|||||||
file(GLOB_RECURSE SOURCES src/*.cpp)
|
file(GLOB_RECURSE SOURCES src/*.cpp)
|
||||||
file(GLOB_RECURSE C_SOURCES src/*.c)
|
file(GLOB_RECURSE C_SOURCES src/*.c)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SOURCES} ${C_SOURCES} ${HEADERS} ${APP_ICON_RESOURCE_WINDOWS})
|
add_executable(${PROJECT_NAME} EXCLUDE_FROM_ALL ${SOURCES} ${C_SOURCES} ${HEADERS} ${APP_ICON_RESOURCE_WINDOWS})
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
use_props(${PROJECT_NAME} "${CMAKE_CONFIGURATION_TYPES}" "${DEFAULT_CXX_PROPS}")
|
use_props(${PROJECT_NAME} "${CMAKE_CONFIGURATION_TYPES}" "${DEFAULT_CXX_PROPS}")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release
|
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release
|
||||||
|
cmake --build build-cmake --target OTRGui --
|
||||||
cmake --build build-cmake --config Release --
|
cmake --build build-cmake --config Release --
|
||||||
|
|
||||||
(cd build-cmake && cpack -G External)
|
(cd build-cmake && cpack -G External)
|
||||||
|
Loading…
Reference in New Issue
Block a user