C++ only project.

This commit is contained in:
Nicolás Ortega Froysa 2018-04-01 16:29:21 +02:00
parent 7305496e9d
commit 2c5b104b82
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 2.8)
project(NeoComm)
project(NeoComm CXX)
# Binary filename
set(TARGET_NAME "neocomm")
@ -40,8 +40,6 @@ include_directories(
# Define files
set(SRCS
src/channel.cpp
src/message.cpp
src/node.cpp)
set(HDRS
@ -64,6 +62,12 @@ else()
add_definitions(-DNDEBUG)
endif()
if(WIN32)
add_definitions(-DWOE32)
elseif(UNIX)
add_definitions(-DUNIX)
endif()
# Create the executable
if(${BUILD_SHARED_LIB})
add_library(${TARGET_NAME} SHARED ${SRCS})