mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 12:16:23 +01:00
Starting to create CMakeLists to android
This commit is contained in:
@@ -19,10 +19,6 @@ endif()
|
||||
|
||||
option(USE_PCH "Use precompiled header (speed up compile)" OFF)
|
||||
|
||||
set(executable_SOURCES
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
# add executable icon for win32 platforms
|
||||
if(WIN32)
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/otcicon.o
|
||||
@@ -35,8 +31,23 @@ endif()
|
||||
|
||||
add_definitions(-D"VERSION=\\"${VERSION}\\"")
|
||||
|
||||
# add client executable
|
||||
add_executable(${PROJECT_NAME} ${framework_SOURCES} ${client_SOURCES} ${executable_SOURCES})
|
||||
|
||||
if(NOT __ANDROID__)
|
||||
set(executable_SOURCES
|
||||
src/android.cpp
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
# add shared library for android
|
||||
add_executable(${PROJECT_NAME} ${framework_SOURCES} ${client_SOURCES} ${executable_SOURCES})
|
||||
else()
|
||||
set(executable_SOURCES
|
||||
src/main.cpp
|
||||
)
|
||||
# add client executable
|
||||
add_executable(${PROJECT_NAME} ${framework_SOURCES} ${client_SOURCES} ${executable_SOURCES})
|
||||
endif()
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${framework_LIBRARIES})
|
||||
|
||||
if(USE_PCH)
|
||||
|
||||
Reference in New Issue
Block a user