C++ only project.
This commit is contained in:
parent
7305496e9d
commit
2c5b104b82
@ -15,7 +15,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project(NeoComm)
|
project(NeoComm CXX)
|
||||||
|
|
||||||
# Binary filename
|
# Binary filename
|
||||||
set(TARGET_NAME "neocomm")
|
set(TARGET_NAME "neocomm")
|
||||||
@ -40,8 +40,6 @@ include_directories(
|
|||||||
|
|
||||||
# Define files
|
# Define files
|
||||||
set(SRCS
|
set(SRCS
|
||||||
src/channel.cpp
|
|
||||||
src/message.cpp
|
|
||||||
src/node.cpp)
|
src/node.cpp)
|
||||||
|
|
||||||
set(HDRS
|
set(HDRS
|
||||||
@ -64,6 +62,12 @@ else()
|
|||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
add_definitions(-DWOE32)
|
||||||
|
elseif(UNIX)
|
||||||
|
add_definitions(-DUNIX)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Create the executable
|
# Create the executable
|
||||||
if(${BUILD_SHARED_LIB})
|
if(${BUILD_SHARED_LIB})
|
||||||
add_library(${TARGET_NAME} SHARED ${SRCS})
|
add_library(${TARGET_NAME} SHARED ${SRCS})
|
||||||
|
Loading…
Reference in New Issue
Block a user